<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST">
    <input type="hidden" name="row[scenario]" value="edit" />
    {notempty name="giftSpecList"}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('规格')}:</label>
        <div class="col-xs-12 col-sm-3">
            <select id="c-gift_spec_id" class="form-control selectpicker" name="row[gift_spec_id]" title="" style="height:31px;">
                {foreach name="giftSpecList" item="vo"}
                <option value="{$key}" {in name="key" value="$row.gift_spec_id" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>
        </div>
    </div>
    {/notempty}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('券码')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-score" class="form-control" type="text" name="row[data]" title="" value="{$row.data}" data-rule="required">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', $statusList, $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button class="btn btn-success btn-embossed disabled" type="submit">{:__('OK')}</button>
            <button class="btn btn-default btn-embossed" type="reset">{:__('Reset')}</button>
        </div>
    </div>
</form>